<?php

namespace app\model\questionnaire;

use app\BaseModel;
use think\model\relation\HasMany;

/**
 * 问卷-标签
 */
class QuestionnaireLabelModel extends BaseModel
{
    protected $name = 'questionnaire_label';

    /**
     * 题目使用标签情况
     * @return HasMany
     */
    public function topicLabel(): HasMany
    {
        return $this->hasMany(QuestionnaireTopicLabelModel::class,'label_id');
    }
}